package com.tentcoo.service.impl;


import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.tentcoo.dao.SuAdminDao;
import com.tentcoo.entity.SuAdminEntity;
import com.tentcoo.service.SuAdminService;





@Service
public class SuAdminServiceImpl implements SuAdminService{

	
	@Autowired
	private SuAdminDao suAdminDao;
	
	
	@Transactional
	@Override
	public void addUser(SuAdminEntity admin) {
		// TODO Auto-generated method stub
		suAdminDao.addUser(admin);
	}

	@Transactional
	@Override
	public void delUser(SuAdminEntity admin) {
		// TODO Auto-generated method stub
		suAdminDao.delUser(admin);
	}
	
	@Transactional
	@Override
	public void updateUser(SuAdminEntity admin) {
		// TODO Auto-generated method stub
		suAdminDao.updateUser(admin);
	}

	@Transactional
	@Override
	public List<SuAdminEntity> findSuperManager(SuAdminEntity admin) {
		// TODO Auto-generated method stub
		List<SuAdminEntity> list = new ArrayList<SuAdminEntity>();
		list = suAdminDao.findSuperManager(admin);
		return list;
	}
}
